#include "multicastserver.h"

MulticastServer::MulticastServer()
{
	WORD wVersionRequested = MAKEWORD(2,2);
	WSADATA WSAdata;
	WSAStartup(wVersionRequested, &WSAdata);

	sock.Create("UDP");
	sock.setMulticastServer("239.255.255.255", 9035);
}

void MulticastServer::sendPacket(char* packet, int packetSize)
{
	sock.SendTo(packet, packetSize);
}